package cn.iocoder.yudao.module.book.controller.app.eargrinding.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 音频新增/修改 Request VO")
@Data
public class AppAudioSaveReqVO {

    @Schema(description = "音频id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7504")
    private Integer audioId;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15175")
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    @Schema(description = "绘本音频", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "绘本音频不能为空")
    private String audioUrl;

    @Schema(description = "绘本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25170")
    @NotNull(message = "绘本id不能为空")
    private Integer bookId;

    @Schema(description = "音频进度（秒数）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "音频进度（秒数）不能为空")
    private Integer progressSeconds;

}